package com.cn.dim.pojo;

	public class Pages {

	    private String page;     //当前第几页
	    private String rows;     //每页显示记录数
	   // private String firstPage;  //第几条记录起始
	    public Pages(){}
	    public Pages(String page, String rows){
	        this.page = page;
	        this.rows = rows;
	    }
	    public String getPage() {
	        return page;
	    }
	    public void setPage(String page) {
	        this.page = page;
	    }
	    public String getRows() {
	        return rows;
	    }
	    public void setRows(String rows) {
	        this.rows = rows;
	    }
	    
	    public String getFirstPage() {
	        return String.valueOf((Integer.parseInt(page) - 1) * Integer.parseInt(rows));
	    }
}
